<?php

namespace app\model;

use app\BaseModel;

/**
 * 设置
 */
class ConfigModel extends BaseModel
{
    protected $name = 'config';

    /**
     * 新增数据验证
     * @return array
     */
    public function addValidate(): array
    {
        return [
            'key|键'  =>  'require',
            'value|值' =>  'require'
        ];
    }

    /**
     * 获取数据验证
     * @return array
     */
    public function getValidate(): array
    {
        return [
            'key|键'  =>  'require',
        ];
    }
}